.search-bar {
  position: relative;

  display: flex;
  align-items: center;

  padding: 8px 16px;

  color: var(--text-color);
}

.search-input-wrapper,
.search-placeholder-wrapper {
  display: flex;
  flex-shrink: 1;
  align-items: center;

  width: 100%;
  height: 32px;
  border-radius: 8px;

  background-color: #e3e4e8;
  color: var(--grey);

  font-size: 14px;

  @media (prefers-color-scheme: dark) {
    background-color: #1c1c1e;
  }
}

.search-placeholder-wrapper .text {
  line-height: 32px;
}

.search-icon {
  margin: 0 6px;
}

.search-input {
  flex-grow: 1;

  height: 32px;
  margin-right: 24px;

  color: var(--text-color);

  font-size: 14px;
  line-height: 32px;
  text-align: left;
}

.clear-icon {
  margin: 0 6px;
}

.cancel-button {
  margin-left: 8px;

  color: #3478f7;

  font-size: 14px;
  line-height: 32px;
  white-space: nowrap;
}

.suggestions {
  position: absolute;
  top: 100%;
  right: 46px;
  left: 8px;
  z-index: 2;

  overflow-y: scroll;

  max-height: 60vh;
  border-radius: 8px;

  background-color: var(--bg-block);
  box-shadow: 1px 1px 4px var(--soft-shadow);

  -webkit-overflow-scrolling: touch;
}

.suggestion {
  position: relative;

  padding: 4px 16px;

  color: var(--grey4);

  font-size: 12px;
  line-height: 1.5;
  text-align: left;

  &::after {
    content: " ";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 16px;

    height: 1px;
    border-bottom: 1px solid var(--border-color);

    transform: scaleY(0.4);
    transform-origin: 0 100%;
  }

  &:last-child::after {
    display: none;
  }
}
